package com.imcrl.piano.mvc.model.vo
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	
	/**
	 *  单个音符 信息;
	 * @author crl
	 * 
	 */	
	public class NoetsDefVO extends EventDispatcher
	{
		/**
		 * 声音标识; 
		 */		
		public var soundKey:int;
		
		/**
		 *节; 
		 */		
		public var node:int=-1;
		
		/**
		 * 开始时间; 
		 */		
		public var start:int;
		
		public var b:Boolean
		
		/**
		 * 持续时间; 
		 */		
		public var duration:int;
		public function NoetsDefVO(soundKey:int,node:int,start:int,duration:int)
		{
			this.soundKey=soundKey;
			this.node=node;
			this.start=start;
			this.duration=duration;
		}
		
		/**
		 *  
		 * @param bool
		 * 
		 */		
		public function set pass(bool:Boolean):void{
			this.b=bool;
			
			this.dispatchEvent(new Event(Event.CHANGE));
		}
		
		override public function toString():String{
			return [node,start,duration].toString();
		}
	}
}